package org.yanfengying.gift.exception.code;

public enum ErrorCode {
    ERROR_CODE_200(200,"操作成功!"),
    ERROR_CODE_400(400,"参数不正确!"),
    ERROR_CODE_500(500,"系统异常,请联系管理员!"),
    ERROR_CODE_TENNAT_PASSWORD_NOTEQ(50001,"两次密码不相同!"),
    ERROR_CODE_TENNAT_EXIST(50002,"该租户已经入住!请直接登录使用!"),
    ERROR_CODE_TENNAT_ADMIN_EXIST(50003,"已经入住过店铺!请直接登录后添加新的店铺!");

    //错误码
    private Integer code;
    //错误信息
    private String message;
    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
